package com.nxy.test.socket;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Created by snailnan on 2017/2/20.
 */
public class MySocketService {
    public static void main(String[] args) throws IOException {
        ServerSocket s = new ServerSocket(6666);
        while (true){
            Socket c = s.accept();
            new Thread(new ServerThread(c)).start();
        }
    }
}
